package com.youme.tools.cg.util;

public final class StringUtil {
  StringUtil() {}

  /** null String */
  private static final String NULL_STRING = "null";

  /**
   * 字符串非空判断
   * 
   * @Title: isEmpty
   * @Description: 判断传入的字符串是不是：<br/>
   *               空字符串""、空格" "、null、字符串"null"、字符串" Null "
   * @param str 要判断的字符串
   * @return boolean
   */
  public static boolean isEmpty(String str) {
    if (null == str) {
      return true;
    } else {
      str = str.trim();
      return (str.length() <= 0 || NULL_STRING.equalsIgnoreCase(str));
    }
  }

}
